cmake_minimum_required(VERSION 3.0)
project(rtmp)
add_definitions(-isystem)
set(CMAKE_CXX_STANDARD 14) # 设置C++标准为C++11
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) # 必须使用C++11标准
add_definitions(-std=c++14 -g)
# for sublime text clangd
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include_directories(./../loop_event)
include_directories(/usr/local/)

set(rtmp_server ./)

set(loop_event_list ./)
aux_source_directory(./../loop_event loop_event_list)
aux_source_directory(./ rtmp_server)
message(${rtmp_server})
message(${loop_event_list})

add_executable(${PROJECT_NAME} ${loop_event_list} ${rtmp_server})

